<template>
  <Card1 v-if="homeCardType == 1" :goodList="goodList" />
  <Card2 v-else-if="homeCardType == 2" :goodList="goodList" />
</template>

<script setup lang="ts">
import Card1 from "./card1.vue";
import Card2 from "./card2.vue";

defineProps({
  homeCardType: {
    type: Number,
    default: 1,
  },
  goodList: {
    type: Array,
    default: () => [],
  },
});
</script>

<style scoped lang="less"></style>
